package com.example.yuanann.vegetable_app.util;

import android.util.Log;

import cn.hutool.core.util.StrUtil;

public class LogUtil {

    private LogUtil(){}

    private static final String TAG = "ShoppingApp";

    public static void info(String msg){
        Log.i(TAG,msg);
    }

    public static void info(String format,Object... params){
        Log.i(TAG, StrUtil.format(format,params));
    }

    public static void info(String msg,Throwable throwable){
        Log.i(TAG,msg,throwable);
    }

    public static void error(String msg){
        Log.e(TAG,msg);
    }

    public static void error(String msg,Throwable throwable){
        Log.e(TAG,msg,throwable);
    }

    public static void warn(String msg){
        Log.w(TAG,msg);
    }

    public static void debug(String msg){
        Log.d(TAG,msg);
    }
}
